{* $Id$ *}
{include_core file="admin/lib/header.html" title="选择添加方式"}
<div class="page-header border-bottom clearfix">
  <h2 class="left">添加管理</h2>
  <a href="{AnUrl('coupon/admin')}" class="btn btn-default btn-sm right">&lt;&nbsp;返回优惠卷列表</a>
</div>
<!--start:商品新增-->
<style>
  .js_select{
    width:auto;
  }
</style>
<div class="add-form">
  <div class="js_setCate" style="display:block">

    <table class="table" cellpadding="0" cellspacing="0">
      <tr>
        <th><label for="" class="add-f-label">选择添加方式：</label></th>
        <td>
        {$options_add = coupon_config::$options_add_coupon}
          <div class="js_parent">
            <select class="add-f-slt1 js_options_add" >
            {foreach $options_add as $k => $v}
              <option value="{$k}">{$v}</option>
            {/foreach}
            </select>
          </div>
          <div class="tips">
            <span style="line-height: 34px;color: #f00;margin-right: 10px;">*</span>
            请选择优惠卷添加方式
          </div>
        </td>
      </tr>
    </table>
    <span class="btn btn-success js_subCate" style="margin-left:125px;">&nbsp;&nbsp;&nbsp;确认选择并添加优惠卷&nbsp;&nbsp;&nbsp;</span>
  </div>

</div>
<!--end:选择商品分类-->
<script>
$(function(){
  $('.js_subCate').click(function(){
    var options_val = $('.js_options_add').val()
    if(!options_val) {
      showMsg('请选择优惠卷添加方式！');
    }
    location.href = "{AnUrl('coupon/admin/add?options_type=')}"+options_val;
  });
});
</script>
{include_core file="admin/lib/footer.html"}